/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * Home.java
 *
 * Created on Aug 8, 2011, 9:11:17 PM
 */

package GUI;

import java.awt.Dimension;
import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.Calendar;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.ImageIcon;
import javax.swing.JOptionPane;
import javax.swing.Timer;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;

/**
 *
 * @author Pham Quang
 */
public class Home_Customer extends javax.swing.JFrame {
    public static int x;
    public static int y;
    /** Creates new form Home */
    public Home_Customer() {
             try {
            UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
        } catch (ClassNotFoundException ex) {
            Logger.getLogger(Login.class.getName()).log(Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            Logger.getLogger(Login.class.getName()).log(Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            Logger.getLogger(Login.class.getName()).log(Level.SEVERE, null, ex);
        } catch (UnsupportedLookAndFeelException ex) {
            Logger.getLogger(Login.class.getName()).log(Level.SEVERE, null, ex);
        }
        initComponents();
        this.setVisible(true);
//          try {
//            Thread.sleep(150);
//            Dimension ds = Toolkit.getDefaultToolkit().getScreenSize();
//            x = this.getWidth();
//            y = this.getHeight();
//            motion();
//            this.setResizable(false);
//        } catch (InterruptedException ex) {
//            JOptionPane.showMessageDialog(this, ex.getMessage());
//        }
         btnhomeActionPerformed(null);
         Timer clock = new Timer(1000, new ActionListener() {
             public void actionPerformed(ActionEvent e) {
               Calendar cal = Calendar.getInstance();
               int hour = cal.get(Calendar.HOUR);
               int min = cal.get(Calendar.MINUTE);
               int second=cal.get(Calendar.SECOND);
                 if (second < 10) {
                     txttime.setText(" "+hour+ " : " +min+ " : 0" +second);
                 }else if (min < 10) {
                     txttime.setText(" "+hour+ " : 0" +min+ " : " +second);
                 }else if (hour < 10) {
                     txttime.setText(" 0"+hour+ " : " +min+ " : " +second);
                 }
                 else{
                     txttime.setText(" "+hour+ " : " +min+ " : " +second);
                 }
             }
         });
        clock.start();
        
    }
//     private void motion() {
//        this.setSize(0, 0);
//        new Thread(new SizeMonition(this, x, y)).start();
//    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel1 = new javax.swing.JPanel();
        jLabel1 = new javax.swing.JLabel();
        jPanel2 = new javax.swing.JPanel();
        jLabel2 = new javax.swing.JLabel();
        jPanel3 = new javax.swing.JPanel();
        jCalendar1 = new com.toedter.calendar.JCalendar();
        btnhome = new javax.swing.JButton();
        jLabel3 = new javax.swing.JLabel();
        btnmyfitness = new javax.swing.JButton();
        btnchangepass = new javax.swing.JButton();
        btnEditInfo = new javax.swing.JButton();
        btnlogout = new javax.swing.JButton();
        txttime = new javax.swing.JTextField();
        jLabel4 = new javax.swing.JLabel();
        jPanel4 = new javax.swing.JPanel();
        jPanel5 = new javax.swing.JPanel();
        btnfit = new javax.swing.JButton();
        btnnutrition = new javax.swing.JButton();
        btnnew = new javax.swing.JButton();
        btnscstory = new javax.swing.JButton();
        btnbranch = new javax.swing.JButton();
        btnabout = new javax.swing.JButton();
        btnstaff = new javax.swing.JButton();
        jPanel6 = new javax.swing.JPanel();
        jMenuBar1 = new javax.swing.JMenuBar();
        mnfile = new javax.swing.JMenu();
        jMenuexit = new javax.swing.JMenuItem();
        mnhelp = new javax.swing.JMenu();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("Prime Physique System");

        jPanel1.setPreferredSize(new java.awt.Dimension(793, 70));

        jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/banner01.jpg"))); // NOI18N
        jLabel1.setPreferredSize(new java.awt.Dimension(793, 70));

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, 900, Short.MAX_VALUE)
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        getContentPane().add(jPanel1, java.awt.BorderLayout.PAGE_START);

        jPanel2.setBackground(new java.awt.Color(255, 255, 204));
        jPanel2.setPreferredSize(new java.awt.Dimension(793, 30));

        jLabel2.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabel2.setText("Design by Group 362 - Hanoi Aptech");
        jLabel2.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addGap(330, 330, 330)
                .addComponent(jLabel2)
                .addContainerGap(345, Short.MAX_VALUE))
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(jLabel2)
                .addContainerGap())
        );

        getContentPane().add(jPanel2, java.awt.BorderLayout.PAGE_END);

        jPanel3.setBackground(new java.awt.Color(255, 255, 204));
        jPanel3.setPreferredSize(new java.awt.Dimension(170, 422));

        btnhome.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/Home.png"))); // NOI18N
        btnhome.setText("Home");
        btnhome.setContentAreaFilled(false);
        btnhome.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        btnhome.setFocusPainted(false);
        btnhome.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnhome.setVerticalAlignment(javax.swing.SwingConstants.TOP);
        btnhome.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        btnhome.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnhomeActionPerformed(evt);
            }
        });

        jLabel3.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabel3.setForeground(new java.awt.Color(0, 204, 0));
        jLabel3.setText("Hello :");

        btnmyfitness.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/Fitness_Menu_2.png"))); // NOI18N
        btnmyfitness.setText("My Fitness");
        btnmyfitness.setContentAreaFilled(false);

        btnchangepass.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/pass.png"))); // NOI18N
        btnchangepass.setText("Change Password");
        btnchangepass.setContentAreaFilled(false);

        btnEditInfo.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/group.png"))); // NOI18N
        btnEditInfo.setText("Edit Information");
        btnEditInfo.setContentAreaFilled(false);

        btnlogout.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/dialog_cancel.png"))); // NOI18N
        btnlogout.setText("Logout");
        btnlogout.setContentAreaFilled(false);
        btnlogout.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnlogoutActionPerformed(evt);
            }
        });

        txttime.setEditable(false);
        txttime.setFont(new java.awt.Font("Tahoma", 1, 11));
        txttime.setForeground(new java.awt.Color(102, 0, 0));

        jLabel4.setText("Current Time :");

        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel3)
                    .addComponent(btnmyfitness)
                    .addComponent(btnEditInfo)
                    .addComponent(btnlogout)
                    .addComponent(jCalendar1, javax.swing.GroupLayout.PREFERRED_SIZE, 142, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(txttime, javax.swing.GroupLayout.PREFERRED_SIZE, 79, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                        .addGap(18, 18, 18)
                        .addComponent(btnhome))
                    .addComponent(btnchangepass))
                .addContainerGap())
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jLabel4)
                        .addGap(7, 7, 7)
                        .addComponent(txttime, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(jLabel3))
                    .addComponent(btnhome))
                .addGap(20, 20, 20)
                .addComponent(btnchangepass)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btnmyfitness)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btnEditInfo)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btnlogout)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 79, Short.MAX_VALUE)
                .addComponent(jCalendar1, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(41, 41, 41))
        );

        getContentPane().add(jPanel3, java.awt.BorderLayout.LINE_START);

        jPanel4.setLayout(new java.awt.BorderLayout());

        jPanel5.setBackground(new java.awt.Color(255, 255, 204));
        jPanel5.setPreferredSize(new java.awt.Dimension(726, 70));

        btnfit.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/fitness1.png"))); // NOI18N
        btnfit.setText("Fitness Program");
        btnfit.setContentAreaFilled(false);
        btnfit.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        btnfit.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnfit.setVerticalAlignment(javax.swing.SwingConstants.TOP);
        btnfit.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        btnfit.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnfitActionPerformed(evt);
            }
        });

        btnnutrition.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/food.png"))); // NOI18N
        btnnutrition.setText("Nutrition");
        btnnutrition.setContentAreaFilled(false);
        btnnutrition.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        btnnutrition.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnnutrition.setVerticalAlignment(javax.swing.SwingConstants.TOP);
        btnnutrition.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        btnnutrition.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnnutritionActionPerformed(evt);
            }
        });

        btnnew.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/news_subscribe.png"))); // NOI18N
        btnnew.setText("News & Events");
        btnnew.setContentAreaFilled(false);
        btnnew.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        btnnew.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnnew.setVerticalAlignment(javax.swing.SwingConstants.TOP);
        btnnew.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        btnnew.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnnewActionPerformed(evt);
            }
        });

        btnscstory.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/storysc.png"))); // NOI18N
        btnscstory.setText("SuccessStory");
        btnscstory.setContentAreaFilled(false);
        btnscstory.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        btnscstory.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnscstory.setVerticalAlignment(javax.swing.SwingConstants.TOP);
        btnscstory.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        btnscstory.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnscstoryActionPerformed(evt);
            }
        });

        btnbranch.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/Branch.png"))); // NOI18N
        btnbranch.setText("Branches");
        btnbranch.setContentAreaFilled(false);
        btnbranch.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        btnbranch.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnbranch.setVerticalAlignment(javax.swing.SwingConstants.TOP);
        btnbranch.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        btnbranch.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnbranchActionPerformed(evt);
            }
        });

        btnabout.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/about.png"))); // NOI18N
        btnabout.setText("About");
        btnabout.setContentAreaFilled(false);
        btnabout.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        btnabout.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnabout.setVerticalAlignment(javax.swing.SwingConstants.TOP);
        btnabout.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        btnabout.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnaboutActionPerformed(evt);
            }
        });

        btnstaff.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/Staffs.png"))); // NOI18N
        btnstaff.setText("Staffs");
        btnstaff.setContentAreaFilled(false);
        btnstaff.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        btnstaff.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnstaff.setVerticalAlignment(javax.swing.SwingConstants.TOP);
        btnstaff.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        btnstaff.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnstaffActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);
        jPanel5.setLayout(jPanel5Layout);
        jPanel5Layout.setHorizontalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel5Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(btnfit, javax.swing.GroupLayout.PREFERRED_SIZE, 109, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(7, 7, 7)
                .addComponent(btnnutrition, javax.swing.GroupLayout.PREFERRED_SIZE, 73, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(btnnew)
                .addGap(18, 18, 18)
                .addComponent(btnscstory, javax.swing.GroupLayout.PREFERRED_SIZE, 97, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(btnbranch)
                .addGap(18, 18, 18)
                .addComponent(btnstaff, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGap(18, 18, 18)
                .addComponent(btnabout, javax.swing.GroupLayout.PREFERRED_SIZE, 76, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(29, 29, 29))
        );
        jPanel5Layout.setVerticalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel5Layout.createSequentialGroup()
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(btnabout)
                    .addComponent(btnstaff)
                    .addComponent(btnbranch)
                    .addComponent(btnscstory)
                    .addComponent(btnnew)
                    .addComponent(btnnutrition)
                    .addComponent(btnfit))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jPanel4.add(jPanel5, java.awt.BorderLayout.PAGE_START);

        jPanel6.setBackground(new java.awt.Color(255, 255, 204));
        jPanel4.add(jPanel6, java.awt.BorderLayout.CENTER);

        getContentPane().add(jPanel4, java.awt.BorderLayout.CENTER);

        mnfile.setText("File");
        mnfile.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnfileActionPerformed(evt);
            }
        });

        jMenuexit.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_E, java.awt.event.InputEvent.ALT_MASK));
        jMenuexit.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/closer.gif"))); // NOI18N
        jMenuexit.setText("Exit");
        jMenuexit.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuexitActionPerformed(evt);
            }
        });
        mnfile.add(jMenuexit);

        jMenuBar1.add(mnfile);

        mnhelp.setText("Help");
        jMenuBar1.add(mnhelp);

        setJMenuBar(jMenuBar1);

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jMenuexitActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuexitActionPerformed
       System.exit(0);
    }//GEN-LAST:event_jMenuexitActionPerformed

    private void btnfitActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnfitActionPerformed
         jPanel6.removeAll();
     //    jPanel6.add(new FitnessInfo());
         jPanel6.updateUI();
    }//GEN-LAST:event_btnfitActionPerformed

    private void btnnutritionActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnnutritionActionPerformed
         jPanel6.removeAll();
         jPanel6.add(new NutritionInfo());
         jPanel6.updateUI();
    }//GEN-LAST:event_btnnutritionActionPerformed

    private void btnnewActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnnewActionPerformed
         jPanel6.removeAll();
         jPanel6.add(new NewsEvent());
         jPanel6.updateUI();
    }//GEN-LAST:event_btnnewActionPerformed

    private void btnscstoryActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnscstoryActionPerformed
         jPanel6.removeAll();
         jPanel6.add(new SuccessStory());
         jPanel6.updateUI();
    }//GEN-LAST:event_btnscstoryActionPerformed

    private void btnbranchActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnbranchActionPerformed
        jPanel6.removeAll();
        jPanel6.add(new Branches());
        jPanel6.updateUI();
    }//GEN-LAST:event_btnbranchActionPerformed

    private void btnstaffActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnstaffActionPerformed
       jPanel6.removeAll();
       jPanel6.add(new StaffInfo());
       jPanel6.updateUI();
    }//GEN-LAST:event_btnstaffActionPerformed

    private void btnaboutActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnaboutActionPerformed
         jPanel6.removeAll();
         jPanel6.add(new About());
         jPanel6.updateUI();

    }//GEN-LAST:event_btnaboutActionPerformed

    private void btnhomeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnhomeActionPerformed
        jPanel6.removeAll();
        jPanel6.add(new ImagePanel(new ImageIcon("src/Images/fitness-center.jpg").getImage()));
        this.setResizable(false);
        this.setLocationRelativeTo(this);
    }//GEN-LAST:event_btnhomeActionPerformed

    private void btnlogoutActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnlogoutActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_btnlogoutActionPerformed

    private void mnfileActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnfileActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_mnfileActionPerformed

    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new Home_Customer().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnEditInfo;
    private javax.swing.JButton btnabout;
    private javax.swing.JButton btnbranch;
    private javax.swing.JButton btnchangepass;
    private javax.swing.JButton btnfit;
    private javax.swing.JButton btnhome;
    private javax.swing.JButton btnlogout;
    private javax.swing.JButton btnmyfitness;
    private javax.swing.JButton btnnew;
    private javax.swing.JButton btnnutrition;
    private javax.swing.JButton btnscstory;
    private javax.swing.JButton btnstaff;
    private com.toedter.calendar.JCalendar jCalendar1;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JMenuItem jMenuexit;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JPanel jPanel4;
    private javax.swing.JPanel jPanel5;
    private javax.swing.JPanel jPanel6;
    private javax.swing.JMenu mnfile;
    private javax.swing.JMenu mnhelp;
    private javax.swing.JTextField txttime;
    // End of variables declaration//GEN-END:variables

}
